package com.angel.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/f1")
public class Index {

    @RequestMapping("/tindex")
    public ModelAndView index(Model model) throws Exception{
        model.addAttribute("hello","测试说的是");
        ModelAndView modelAndView =new ModelAndView("index1");
        return modelAndView;
    }

}
